<script setup>
import {useRoute} from "vue-router";
import {computed} from "vue";

const route = useRoute();
const postId = route.params.id;
const searchKeyword = computed(()=>route.query.keyword);
</script>

<template>
<div>
  <h1>博客ID：{{postId}}</h1>
  <h2>Query: {{searchKeyword}}</h2>
</div>
</template>

<style scoped>

</style>